//
//  OutRentModifyAPI.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/7/13.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "OutRentModifyAPI.h"

@interface OutRentModifyAPI()

@property (nonatomic,copy) NSString *rentCarId;

@property (nonatomic,copy) NSString *rentType;
@property (nonatomic,copy) NSString *ownerName;
@property (nonatomic,copy) NSString *ownerTel;
@property (nonatomic,copy) NSString *startDate;
@property (nonatomic,copy) NSString *endDate;
@property (nonatomic,copy) NSString *rentFee;
@property (nonatomic,copy) NSString *protoco;


@end

@implementation OutRentModifyAPI

- (instancetype)initWithRentCarId:(NSString *)rentCarId {
    if (self = [super init]) {
        self.rentCarId = rentCarId;
        [self testDataAPI];
       
    }
    return self;
}

- (void)testDataAPI {
    self.rentCarId = @"2";
    self.ownerTel = @"18520701023";
    self.ownerName = @"lianshenrong";
    self.rentFee = @"50000";
    self.startDate = @"2019-09-01";
    self.endDate = @"2019-09-01";
    self.protoco = @"http://11111";
    
}

- (NSString *)requestUrl {
    return @"message/car/updateOutRent";
}


- (id)requestAppendArgument{
    AvoidNullString(self.protoco);
    return @{
                @"rentId":self.rentCarId,
                @"ownerName":self.ownerName,
                @"ownerTel":self.ownerTel,
                @"startDate":self.startDate,
                @"endDate":self.endDate,
                @"rentFee":self.rentFee,
                @"protocol":self.protoco,
            };
}


@end
